﻿using AutoMapper;
using BSChuangXu.API.Write.Appicant.Command.MenuCommand;
using BSChuangXu.API.Write.Appicant.Command.RolesCommand;
using BSChuangXu.API.Write.Appicant.Command.UserCommand;
using BSChuangXu.Domain.User;
using System.Data;

namespace BSChuangXu.API.Write
{
    public class AutoMapperFilePro : Profile
    {
        public AutoMapperFilePro()
        {
            CreateMap<AddUserCommand, UserModel>().ReverseMap();
            CreateMap<UpdateUserCommand, UserModel>().ReverseMap();
            CreateMap<RoleCreateCommand, RoleModel>().ReverseMap();
            CreateMap<UserRoleCommand, UserRole>().ReverseMap();
            CreateMap<AddMenuCommand, MenuModel>().ReverseMap();
        }
    }
}
